import Vue from 'vue'
import {
  Tabbar,
  TabbarItem,
  NavBar,
  Form,
  Field,
  Grid,
  GridItem,
  Button,
  Swipe,
  SwipeItem,
  Search,
  IndexBar,
  IndexAnchor,
  Tab,
  Tabs,
  DropdownMenu,
  DropdownItem,
  TreeSelect,
  Icon,
  Popup,
  Rate,
  Checkbox,
  CheckboxGroup,
  Cascader,
  ActionSheet,
  Picker,
  Cell,
  CellGroup,
  Image as VanImage,
  Dialog,
  Col,
  Row
} from 'vant'

Vue.use(Col)
Vue.use(Row)

// 全局注册
Vue.use(Dialog)

Vue.use(VanImage)

Vue.use(Cell)
Vue.use(CellGroup)

Vue.use(Picker)

Vue.use(ActionSheet)

Vue.use(Cascader)

Vue.use(Checkbox)
Vue.use(CheckboxGroup)

Vue.use(Rate)

Vue.use(Popup)

Vue.use(Icon)

Vue.use(TreeSelect)

Vue.use(DropdownMenu)
Vue.use(DropdownItem)

Vue.use(Tab)
Vue.use(Tabs)

Vue.use(IndexBar)
Vue.use(IndexAnchor)

Vue.use(IndexBar)
Vue.use(IndexAnchor)

Vue.use(Search)

Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(Button)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(Form)
Vue.use(Field)
Vue.use(NavBar)
Vue.use(Tabbar)
Vue.use(TabbarItem)
